package com.my.socket.bio.v11;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.net.InetSocketAddress;
import java.net.Socket;

/**
 * Created by ZhongGang
 * at 2018/7/10 15:43
 */
public class Client {
    private static final Logger LOGGER = LoggerFactory.getLogger(Client.class);

    public static void main(String[] args) throws Exception {
        for (int i = 0; i < 10; i++) {
            Socket socket = new Socket();
            InetSocketAddress inetSocketAddress = new InetSocketAddress("127.0.0.1", 9999);
            socket.connect(inetSocketAddress);
            LOGGER.info("connect: {}", socket);
        }
    }
}
